﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SRF.Common.Logging.Impl
{
    public class Log4Factory : ILogFactory
    {
        static Log4Factory()
        {
            string configFile = AppDomain.CurrentDomain.BaseDirectory + "log4net.config";
            log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(configFile));
        }

        public ILog GetLogger(string name)
        {
            return new Log4Logger(name);
        }
    }
}